﻿using Cap.UserMicroservice.Entities;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace Cap.UserMicroservice.Data;

public class UserMicroserviceDbContext : AbpDbContext<UserMicroserviceDbContext>
{
    public UserMicroserviceDbContext(DbContextOptions<UserMicroserviceDbContext> options)
        : base(options)
    {
    }

    /// <summary>
    /// 用户信息表
    /// </summary>
    public DbSet<UserInfo> UserInfo { get; set; }
    /// <summary>
    /// 用户信息扩展表
    /// </summary>
    public DbSet<UserDetailInfo> UserDetailInfo { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="builder"></param>
    protected override void OnModelCreating(ModelBuilder builder)
    {
        base.OnModelCreating(builder);
    }
}
